package com.jimikongjian.service.base;

import com.jimikongjian.models.ApplicationInfo;
import com.jimikongjian.models.ResponseMessage;

/**
 * Created by fuxiuyang on 17/3/15.
 */
public interface IApplicationInfoService {

    /**
     * 创建一个申请
     * @param applicationInfo
     * @return
     */
    public ResponseMessage createApplicationInfo(ApplicationInfo applicationInfo);

    /**
     * 查询用户已申请的空间信息
     * @param applicatorId
     * @param start
     * @param length
     * @return
     */
    public ResponseMessage selectApplicationInfoByApplicatorId(int applicatorId, int start, int length);

    /**
     * 查询申请该用户拥有的空间的申请信息
     * @param roomCreator
     * @param start
     * @param length
     * @return
     */
    public ResponseMessage selectApplicationListByRoomCreator(int roomCreator, int start, int length);

    /**
     * 查询申请该用户拥有的空间的未读的申请信息
     * @param roomCreator
     * @param start
     * @param length
     * @return
     */
    public ResponseMessage selectUnreadApplicationListByRoomCreator(int roomCreator, int start, int length);

    /**
     * 查询申请该用户未读申请消息的条数
     * @param roomCreator
     * @return
     */
    public ResponseMessage selectUnreadCountByRoomCreator(int roomCreator);

    /**
     * 更新申请信息
     * @param applicationInfo
     * @return
     */
    public ResponseMessage updateApplicationInfo(ApplicationInfo applicationInfo);
}
